package com.bole.controller;

import com.bole.feign.TestFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    private TestFeign testFeign;
    @GetMapping
    public String test() {
        String test = testFeign.test();
        return test;
    }
}
